﻿using WidgetsDesign.API.Models;

namespace WidgetsDesign.API.Services
{
    /// <summary>
    /// 受限空间
    /// </summary>
    public interface Izyxk_ConfinedSpaceRepository
    {
        /// <summary>
        /// 创建受限空间作业许可证
        /// </summary>
        /// <param name="confinedspace"></param>
        void CreateConfinedSpace(zyxk_confinedspaceModel confinedSpace);
        /// <summary>
        /// 添加安全措施
        /// </summary>
        /// <param name="confinedspace"></param>
        void CreateConfinedSpaceRisk(zyxk_confinedspaceModel confinedSpace);
        /// <summary>
        /// 添加签名
        /// </summary>
        /// <param name="confinedSpace"></param>
        void CreateConfinedSpaceSign(zyxk_confinedspaceModel confinedSpace);
        /// <summary>
        /// 保存
        /// </summary>
        /// <returns></returns>
        Task<bool> SaveAsync();

        /// <summary>
        /// pdf
        /// </summary>
        /// <param name="inputFilePath"></param>
        /// <param name="outputFilePath"></param>
        /// <param name="craneOperation"></param>
        /// <returns></returns>
        string zyxk_ConfinedSpaceTopdf(string inputFilePath, string outputFilePath, zyxk_confinedspaceModel craneOperation);

    }
}
